<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt' %>

<c:set var="title" value="订单管理"/>
<%@include file="common/adminHeader.jsp" %>
<c:set var="light" value="4"/>
<%@include file="common/adminNavigator.jsp" %>
<style>
    #tablelist span {
        height: 80px;
        line-height: 80px;
    }
    .btn-push {
        margin-top: 26px;
        margin-right: 8px;
    }
</style>
<div class="container">
    <%--<ol class="breadcrumb">
        <li><a href="javascript:void(0);">订单管理</a></li>
    </ol>--%>
    <div class="right-top-box">
        <div class="btn bs-bars">
            <a class="btn-product" id="btn_add" title="添加">
                <i class="fa fa-plus fa-fw"></i>
            </a>
            <a class="btn-delete" id="btn_delete_ids" title="批量删除">
                <i class="fa fa-trash-o fa-fw"></i>
            </a>
        </div>
        <div class="row" id="tb">
            <div class="col-md-12">
                <form class="form-inline" id="resource-form">
                    <div class="group-inner">
                        <input type="text" class="form-control form-input" id="search-user_id" name="search-user_id"  placeholder="用户id">
                    </div>
                    <div class="group-inner">
                        <input type="text" class="form-control form-input" id="search-order_no" name="search-order_no" placeholder="订单号">
                    </div>
                    <div class="group-inner">
                        <input type="text" class="form-control form-input" id="search-status" name="search-status" placeholder="订单状态">
                    </div>
                    <a class="btn btn-info glyphicon glyphicon-search form-search group-inner" id="btnSearch" >
                    </a>
                </form>
            </div>
        </div>
    </div>
    <div class="modal fade" id="addOrUpdateModal" tabindex="-1" role="dialog" aria-labelledby="addroleLabel" data-backdrop="static" aria-hidden="false">
        <div class="modal-backdrop fade"></div>
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    <h4 class="modal-title" id="addroleLabel">修改订单</h4>
                </div>
                <div class="modal-body">
                    <form id="addOrUpdateForm" class="form-horizontal form-label-left" novalidate="">
                        <input type="hidden" name="id" value="">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="order_no">订单号</label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12" id="order_no" name="order_no" placeholder="请输入订单号">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="user_id">用户id<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12" name="user_id" id="user_id" required="required" placeholder="请输入用户id">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="payment_type">支付类型</label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12" name="payment_type" id="payment_type" placeholder="请输入支付类型">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="status">订单状态</label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <%--    <input type="number" class="form-control col-md-7 col-xs-12" name="status" id="status" placeholder="请输入订单状态">--%>
                                <%--    <input type="number" class="form-control col-md-7 col-xs-12" name="status" id="status" placeholder="请输入订单状态">&ndash;%&gt;--%>
                                <select class="form-control" name="status" id="status">
                                    <option value="10">未付款</option>
                                    <option value="20">付款</option>
                                </select>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"> 关闭</i></button>
                    <button type="button" class="btn btn-success addOrUpdateBtn"><i class="fa fa-save">保存</i></button>
                </div>
            </div>
        </div>
    </div>
    <table id="tablelist"></table>
    <script type="text/javascript" src="render/js/manager/common.js"></script>
    <script type="text/javascript" src="render/js/manager/orderManager.js"></script>
</div>

<%@include file="common/adminFooter.jsp" %>
